{% extends "base.html" %}

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

{% block content %}
<h1>{{ title }}</h1>

<form name="register" action="" method="post">
	<table>
		{% for field in form %}
        <tr>
        	<td>{{ field.label_tag }}</td>
          	<td>{{ field }}{% if field.errors %} <strong>{{ field.errors }}</strong>{% endif %}</td>
        </tr>
		{% endfor %}
	</table>
	<input type="submit" value="Register">
</form>
{% endblock %}